﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Helix_Network_Supervisor_3
{
    public partial class StatusForm : Form
    {
        #region Ctor

        public StatusForm()
        {
            InitializeComponent();
            statusProgressBar.Value = 0;
            statusProgressBar.Style = ProgressBarStyle.Continuous;
        }

        #endregion Ctor

        #region Public Methods

        public void UpdateStatusLabel(string text)
        {
            statusLabel.Text = text;
            statusLabel.Refresh();
            //this.Refresh();
        }

        public void UpdateStatusTitle(string title)
        {
            this.Text = title;
            this.Refresh();

        }

        public void UpdateProgressBar(int progress)
        {
            statusProgressBar.Value += progress;
            statusProgressBar.Refresh();
            //this.Refresh();
        }

        public void UpdateProgressBarPercent(int percent)
        {
            statusProgressBar.Value = percent;
            statusProgressBar.Refresh();
        }

        #endregion Public Methods
    }
}
